package com.zhonghan.recharge.service.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhonghan.recharge.dao.BmItemDao;
import com.zhonghan.recharge.pojo.BmItem;
import com.zhonghan.recharge.service.BmItemService;
@Service
public class BmItemServiceImpl implements BmItemService{
    @Autowired
    private BmItemDao bmItemDao;
    @Override
    public long getBmItemRowCount(){
        return bmItemDao.getBmItemRowCount();
    }
    @Override
    public List<BmItem> selectBmItem(){
        return bmItemDao.selectBmItem();
    }
    @Override
    public List<BmItem> selectBmItemByObj(BmItem obj){
        return bmItemDao.selectBmItemByObj(obj);
    }
    @Override
    public BmItem selectBmItemById(Integer id){
        return bmItemDao.selectBmItemById(id);
    }
    @Override
    public int insertBmItem(BmItem value){
        return bmItemDao.insertBmItem(value);
    }
    @Override
    public int insertNonEmptyBmItem(BmItem value){
        return bmItemDao.insertNonEmptyBmItem(value);
    }
    @Override
    public int insertBmItemByBatch(List<BmItem> value){
        return bmItemDao.insertBmItemByBatch(value);
    }
    @Override
    public int deleteBmItemById(Integer id){
        return bmItemDao.deleteBmItemById(id);
    }
    @Override
    public int updateBmItemById(BmItem enti){
        return bmItemDao.updateBmItemById(enti);
    }
    @Override
    public int updateNonEmptyBmItemById(BmItem enti){
        return bmItemDao.updateNonEmptyBmItemById(enti);
    }

    public BmItemDao getBmItemDao() {
        return this.bmItemDao;
    }

    public void setBmItemDao(BmItemDao bmItemDao) {
        this.bmItemDao = bmItemDao;
    }

}